<!--
 * @Author: fengYM feng25321@163.com
 * @Date: 2023-09-21 16:09:19
 * @LastEditors: fengYM feng25321@163.com
 * @LastEditTime: 2023-10-16 16:41:37
 * @Description: App页面
-->
<script>
export default {
  onLaunch: function (e) {},
  onShow: function (query) {
    const scene = query.query.scene;
    console.log(scene, "scene");
    uni.setStorageSync("invitationCode", scene);
    console.log(query.query?.invitationCode, "invitationCode");
    if (query.query?.invitationCode) {
      uni.setStorageSync("invitationCode", query.query?.invitationCode);
    }
  },
  onHide: function () {
    console.log("App Hide");
  },
};
</script>

<style lang="scss">
@import "@/uni_modules/uview-plus/index.scss";
/*每个页面公共css */
page {
  box-sizing: border-box;
  background: #f7f7f7;
}
.main {
  padding: 32rpx 24rpx;
  box-sizing: border-box;
}

.u-navbar__content__left__text {
  font-weight: 600 !important;
  font-size: 40rpx !important;
}
.commonBox {
  box-sizing: border-box;
  background: #ffffff;
  border-radius: 16rpx;
  padding: 40rpx;
  margin-bottom: 20rpx;
}
.noticeBox {
  display: flex;
  align-items: center;
  background: #fff;
  padding-left: 32rpx;
  box-shadow: 0rpx 4rpx 8rpx 0rpx #f7f7f7;
  border-radius: 32rpx;

  margin-top: 20rpx;
  .iconBox {
    background: linear-gradient(90deg, #fcdea5 0%, #fc6385 100%);
    border-radius: 0rpx 24rpx 24rpx 24rpx;
    text-align: center;
    padding: 2rpx 30rpx;
    color: #fff;
    font-size: 28rpx;
    font-weight: 600;
    color: #ffffff;
  }
}
.lookBtn {
  width: 184rpx;
  background: #1676fd;
  border-radius: 16rpx;
  display: flex;
  align-items: center;
  font-size: 26rpx;
  font-family: PingFangSC, PingFang SC;
  font-weight: 500;
  color: #ffffff;
  line-height: 36rpx;
  padding: 16rpx 24rpx;
  text {
    margin-left: 12rpx;
  }
}
.buttomBox {
  box-sizing: border-box;
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  background-color: #fff;
  padding: 20rpx;
  padding-bottom: 35rpx;
  z-index: 99;
}
.authLabel {
  width: 90rpx;
  box-sizing: border-box;
  background: rgba(79, 207, 187, 0.1);
  border-radius: 8rpx;
  border: 1rpx solid #4fcfbb;
  font-size: 16rpx;
  font-family: PingFangSC, PingFang SC;
  font-weight: 500;
  color: #4fcfbb;
  padding: 5rpx 8rpx;
  display: flex;
  align-items: center;
  margin-left: 8rpx;
  margin-right: 16rpx;
  margin-top: 6rpx;
  margin-bottom: 8rpx;
  image {
    width: 16rpx;
    height: 16rpx;
    margin-right: 6rpx;
  }
}
.closeBox {
  position: relative;
  .icon {
    position: absolute;
    right: 0;
    top: 0;
    background: #fff;
    width: 40rpx;
    height: 40rpx;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
  }
}
</style>
